<template>
  <div>
    <h1>{{count}}</h1>
    <h1>{{pearson}}-----{{pearson.name}}</h1>
    <button @click="updateProps">修改props</button>
  </div>
</template>

<script>
export default {
    name:'Update',
    props:['count','pearson'],
    methods:{
        updateProps(){
            this.pearson.name='小明'
        }
    }
}
</script>

<style>

</style>